-- JSON module extracted from ITU-T Y.4473 (08/2020)
//Example 18 - Examples of $expand query option
//Example request 1:
//http://example.org/v1.0/Things?$expand=Datastreams
//Returns the entity set of Things as well as each of the Datastreams associated with each Thing entity.
//Example request 1 response:
{
"values": [
{
"@iot.id": 1,
"@iot.selfLink": "http://example.org/v1.0/Things(1)",
"Locations@iot.navigationLink": "Things(1)/Locations",
"Datastreams@iot.count": 1,
"Datastreams": [
{
"@iot.id": 1,
"@iot.selfLink": "http://example.org/v1.0/Datastreams(1)",
"name": "oven temperature",
"description": "This is a datastream measuring the air temperature in an oven.",
"unitOfMeasurement": {
"name": "degree Celsius",
"symbol": "°C",
"definition": "http://unitsofmeasure.org/ucum.html#para-30"
},
"observationType": "http://www.opengis.net/def/observationType/OGC-OM/2.0/OM_Measurement",
"observedArea": {
"type": "Polygon",
"coordinates": [
[
[ 100, 0 ],
[ 101, 0 ],
[ 101, 1 ],
[ 100, 1 ],
[ 100, 0 ]
]
]
},
"phenomenonTime": "2014-03-01T13:00:00Z/2015-05-11T15:30:00Z",
"resultTime": "2014-03-01T13:00:00Z/2015-05-11T15:30:00Z"
}
],
"HistoricalLocations@iot.navigationLink": "Things(1)/HistoricalLocations",
"description": "This thing is a convection oven.",
"name": "Oven",
"properties": {
"owner": "John Doe",
"color": "Silver"
}
}
]
}